@echo off

REM 复制项目的文件到对应docker路径，便于一键生成镜像。

:usage
echo Usage: copy.bat
REM exit /b 1


REM copy sql
echo begin copy sql
copy ..\sql\jl_seata_20210128.sql .\mysql\db
copy ..\sql\jl-cloud.sql .\mysql\db
copy ..\sql\jl-config.sql .\mysql\db

REM copy html
echo begin copy html
xcopy /E /I ..\jingli-ui\dist\* .\nginx\html\dist

REM copy jar
echo begin copy jingli-gateway
copy ..\jingli-gateway\target\jingli-gateway.jar .\jingli\gateway\jar

echo begin copy jingli-auth
copy ..\jingli-auth\target\jingli-auth.jar .\jingli\auth\jar

echo begin copy jingli-visual
copy ..\jingli-visual\jingli-monitor\target\jingli-visual-monitor.jar .\jingli\visual\monitor\jar

echo begin copy jingli-modules-system
copy ..\jingli-modules\jingli-system\target\jingli-system.jar .\jingli\modules\system\jar

echo begin copy jingli-modules-file
copy ..\jingli-modules\jingli-file\target\jingli-file.jar .\jingli\modules\file\jar

echo begin copy jingli-modules-job
copy ..\jingli-modules\jingli-job\target\jingli-job.jar .\jingli\modules\job\jar

echo begin copy jingli-modules-gen
copy ..\jingli-modules\jingli-gen\target\jingli-gen.jar .\jingli\modules\gen\jar

echo begin copy jingli-modules-admin
copy ..\jingli-modules\jingli-admin\target\jingli-admin.jar .\jingli\modules\admin\jar
pause